#pragma once
class GImage
{
public:
	typedef unsigned int GS_COLOR;
	typedef unsigned char byte;

	GImage( int width, int height );
	virtual ~GImage();

	static GS_COLOR color( byte r, byte g, byte b, byte a = 255 );

	void setPixel( int x, int y, GS_COLOR c );
	GS_COLOR getPixel( int x, int y ) const;

	int getWidth() const { return _width; }
	int getHeight() const { return _height; }

private:
	int _width;
	int _height;
	GS_COLOR* _data;
};

